import Vue from 'vue';
import Router from 'vue-router';
import Layout from '@/layout/Layout';
// 报告单
import report from './modules/report';
// 核酸报告单
import hsReport from './modules/hsReport';
// 任务
import task from './modules/task';
// 预约
import appoint from './modules/appoint';
// 挂号
import referral from './modules/referral';
// 消毒中心
import disinfect from './modules/disinfect';
// 药材
import consume from './modules/consume';
// 采样
import sample from './modules/sample';
// 收样
import collect from './modules/collect';
// 机构
import institution from './modules/institution';
// 设备
import equip from './modules/equip';
// 财务
import finance from './modules/finance';
// 项目
import item from './modules/item';
// 文档
import document from './modules/document';
// 开放
import organ from './modules/organ';
// 个人
import user from './modules/user';
// 图文
import question from './modules/question';
// 消息
import message from './modules/message';
// 系统
import system from './modules/system';
import { component } from 'v-viewer';
import { resolve } from 'tinymce';

Vue.use(Router);

// 公共路由
export const constantRouterMap = [
  {
    path: '/redirect',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '/redirect/:path(.*)',
        component: (resolve) => require(['@/views/redirect'], resolve),
      },
    ],
  },
  {
    path: '/login',
    component: (resolve) => require(['@/views/Login'], resolve),
    hidden: true,
  },
  {
    path: '/404',
    component: (resolve) => require(['@/views/system/error/404'], resolve),
    hidden: true,
  },
  {
    path: '/401',
    component: (resolve) => require(['@/views/system/error/401'], resolve),
    hidden: true,
  },
  {
    path: '',
    component: Layout,
    redirect: 'index',
    children: [
      {
        path: 'index',
        component: (resolve) => require(['@/views/Home'], resolve),
        name: '首页',
        meta: { title: '首页', icon: 'el-icon-s-home', affix: true },
      },

      // ------------------------------------报告单管理------------------------------------
      {
        path: '/report/reportAdd',
        name: '新增报告单',
        meta: { title: '新增报告单' },
        hidden: true,
        component: (resolve) => require(['@/views/report/ReportAdd'], resolve),
      },
      {
        path: '/report/newReportAdd',
        name: '新增报告单-新版',
        meta: { title: '新增报告单-新版' },
        hidden: true,
        component: (resolve) => require(['@/views/report/NewReportAdd'], resolve),
      },
      {
        path: '/report/reportEdit',
        name: '编辑报告单',
        meta: { title: '编辑报告单' },
        hidden: true,

        component: (resolve) => require(['@/views/report/ReportEdit'], resolve),
      },
      {
        path: '/report/newReportEdit',
        name: '编辑报告单-新版',
        meta: { title: '编辑报告单-新版' },
        hidden: true,

        component: (resolve) => require(['@/views/report/NewReportEdit'], resolve),
      },
      {
        path: '/report/reportDetail',
        name: '报告单详情',
        meta: { title: '报告单详情' },
        hidden: true,

        component: (resolve) => require(['@/views/report/ReportDetail'], resolve),
      },
      {
        path: '/report/patientHealthDetail',
        name: '查看病情',
        meta: { title: '查看病情' },
        hidden: true,
        component: (resolve) => require(['@/views/report/PatientHealthDetail'], resolve),
      },

      // ------------------------------------核酸报告单管理------------------------------------
      {
        path: '/hsReport/hsReportAdd',
        name: '新增核酸报告单',
        meta: { title: '新增核酸报告单' },
        hidden: true,

        component: (resolve) => require(['@/views/hsReport/hsReportAdd'], resolve),
      },
      {
        path: '/hsReport/hsReportEdit',
        name: '编辑核酸报告单',
        meta: { title: '编辑核酸报告单' },
        hidden: true,

        component: (resolve) => require(['@/views/hsReport/hsReportEdit'], resolve),
      },
      {
        path: '/hsReport/hsReportDetail',
        name: '核酸报告单详情',
        meta: { title: '核酸报告单详情' },
        hidden: true,

        component: (resolve) => require(['@/views/hsReport/hsReportDetail'], resolve),
      },
      {
        path: '/hsReport/patientHealthDetail',
        name: '查看病情',
        meta: { title: '查看病情' },
        hidden: true,

        component: (resolve) => require(['@/views/hsReport/hsPatientHealthDetail'], resolve),
      },

      // ------------------------------------任务管理------------------------------------
      {
        path: '/task/taskAdd',
        name: '新增任务',
        meta: { title: '新增任务' },
        hidden: true,

        component: (resolve) => require(['@/views/task/TaskAdd'], resolve),
      },
      {
        path: '/task/taskDetail',
        name: '任务详情',
        meta: { title: '任务详情' },
        hidden: true,
        component: (resolve) => require(['@/views/task/TaskDetail'], resolve),
      },

      // ------------------------------------预约管理------------------------------------
      {
        path: '/appoint/appointAdd',
        name: '新增预约',
        meta: { title: '新增预约' },
        hidden: true,
        component: () => import('@/views/appoint/AppointAdd'),
      },
      {
        path: '/appoint/appointEdit',
        name: '编辑预约',
        meta: { title: '编辑预约' },
        hidden: true,
        component: () => import('@/views/appoint/AppointEdit'),
      },
      {
        path: '/appoint/appointDetail',
        name: '预约详情',
        meta: { title: '预约详情' },
        hidden: true,
        component: () => import('@/views/appoint/AppointDetail'),
      },

      {
        path: '/appoint/itemAdd',
        name: '新增项目',
        meta: { title: '新增项目' },
        hidden: true,
        component: () => import('@/views/appoint/AppointItemAdd'),
      },
      {
        path: '/appoint/itemEdit',
        name: '编辑项目',
        meta: { title: '编辑项目' },
        hidden: true,
        component: () => import('@/views/appoint/AppointItemEdit'),
      },
      {
        path: '/appoint/itemDetail',
        name: '项目详情',
        meta: { title: '项目详情' },
        hidden: true,
        component: () => import('@/views/appoint/AppointItemDetail'),
      },

      {
        path: '/appoint/classifyAdd',
        name: '新增分类',
        meta: { title: '新增分类' },
        hidden: true,
        component: () => import('@/views/appoint/ItemClassifyAdd'),
      },
      {
        path: '/appoint/classifyEdit',
        name: '编辑分类',
        meta: { title: '编辑分类' },
        hidden: true,
        component: () => import('@/views/appoint/ItemClassifyEdit'),
      },

      // ------------------------------------挂号管理------------------------------------
      {
        path: '/referral/referralAdd',
        name: '新增挂号',
        meta: { title: '新增挂号' },
        hidden: true,
        component: () => import('@/views/referral/ReferralAdd'),
      },
      {
        path: '/referral/referralEdit',
        name: '编辑挂号',
        meta: { title: '编辑挂号' },
        hidden: true,
        component: () => import('@/views/referral/ReferralAdd'),
      },
      {
        path: '/referral/referralDetail',
        name: '挂号详情',
        meta: { title: '挂号详情' },
        hidden: true,
        component: () => import('@/views/referral/ReferralDetail'),
      },

      // ------------------------------------消毒中心------------------------------------
      {
        path: '/disinfect/disinfectAdd',
        name: '新增消毒',
        meta: { title: '新增消毒' },
        hidden: true,
        component: () => import('@/views/disinfect/DisinfectAdd'),
      },
      {
        path: '/disinfect/disinfectEdit',
        name: '编辑消毒',
        meta: { title: '编辑消毒' },
        hidden: true,
        component: () => import('@/views/disinfect/DisinfectAdd'),
      },
      {
        path: '/disinfect/disinfectDetail',
        name: '消毒详情',
        meta: { title: '消毒详情' },
        hidden: true,
        component: () => import('@/views/disinfect/DisinfectDetail'),
      },

      // ------------------------------------药材管理------------------------------------
      {
        path: '/consume/drugAdd',
        name: '新增药品',
        meta: { title: '新增药品' },
        hidden: true,
        component: () => import('@/views/consume/DrugAdd'),
      },
      {
        path: '/consume/drugEdit',
        name: '编辑药品',
        meta: { title: '编辑药品' },
        hidden: true,
        component: () => import('@/views/consume/DrugAdd'),
      },
      {
        path: '/consume/drugDetail',
        name: '药品详情',
        meta: { title: '药品详情' },
        hidden: true,
        component: () => import('@/views/consume/DrugDetail'),
      },

      // ------------------------------------采样管理------------------------------------
      {
        path: '/sample/sampleTakeAdd',
        name: '开始采样',
        meta: { title: '开始采样' },
        hidden: true,
        component: () => import('@/views/sample/SampleTakeAdd'),
      },
      {
        path: '/sample/sampleApplyEdit',
        name: '编辑采样申请',
        meta: { title: '编辑采样申请' },
        hidden: true,
        component: () => import('@/views/sample/SampleApplyAdd'),
      },
      {
        path: '/sample/sampleApplyDetail',
        name: '采样申请详情',
        meta: { title: '采样申请详情' },
        hidden: true,
        component: () => import('@/views/sample/SampleApplyDetail'),
      },
      {
        path: '/sample/nuclePriceModelAdd',
        name: '新增采样价格',
        meta: { title: '新增采样价格' },
        hidden: true,
        component: () => import('@/views/sample/NuclePriceModelAdd'),
      },
      {
        path: '/sample/nuclePriceModelEdit',
        name: '编辑采样价格',
        meta: { title: '编辑采样价格' },
        hidden: true,
        component: () => import('@/views/sample/NuclePriceModelAdd'),
      },
      {
        path: '/sample/nuclePriceModelDetail',
        name: '采样价格详情',
        meta: { title: '采样价格详情' },
        hidden: true,
        component: () => import('@/views/sample/NuclePriceModelDetail'),
      },

      {
        path: '/sample/collageDetail',
        name: '拼团详情',
        meta: { title: '拼团详情' },
        hidden: true,
        component: () => import('@/views/sample/CollageDetail'),
      },
      {
        path: '/sample/sampleNurseTask',
        name: '采样任务',
        meta: { title: '采样任务' },
        hidden: true,
        component: () => import('@/views/sample/SampleNurseTask'),
      },
      {
        path: '/sample/sampleNurseTaskAdd',
        name: '新增采样任务',
        meta: { title: '新增采样任务' },
        hidden: true,
        component: () => import('@/views/sample/SampleNurseTaskAdd'),
      },
      {
        path: '/sample/sampleNurseTaskDetail',
        name: '采样任务详情',
        meta: { title: '采样任务详情' },
        hidden: true,
        component: () => import('@/views/sample/SampleNurseTaskDetail'),
      },

      // ------------------------------------机构管理------------------------------------
      {
        path: '/institu/barodeAdd',
        name: 'barodeAdd',
        meta: { title: '新增条码号' },
        hidden: true,
        component: () => import('@/views/institu/BarodeAdd'),
      },
      {
        path: '/institu/instituAdd',
        name: '新增医检',
        meta: { title: '新增医检' },
        hidden: true,
        component: () => import('@/views/institu/InstituAdd'),
      },
      {
        path: '/institu/instituEdit',
        name: '编辑医检',
        meta: { title: '编辑医检' },
        hidden: true,
        component: () => import('@/views/institu/InstituAdd'),
      },
      {
        path: '/institu/instituDetail',
        name: '医检详情',
        meta: { title: '医检详情' },
        hidden: true,
        component: () => import('@/views/institu/InstituDetail'),
      },

      {
        path: '/institu/hospitalAdd',
        name: '新增医院',
        meta: { title: '新增医院' },
        hidden: true,
        component: () => import('@/views/institu/HospitalAdd'),
      },
      {
        path: '/institu/hospitalEdit',
        name: '编辑医院',
        meta: { title: '编辑医院' },
        hidden: true,
        component: () => import('@/views/institu/HospitalAdd'),
      },
      {
        path: '/institu/hospitalDetail',
        name: '医院详情',
        meta: { title: '医院详情' },
        hidden: true,
        component: () => import('@/views/institu/HospitalDetail'),
      },

      {
        path: '/institu/officeAdd',
        name: '新增科室',
        meta: { title: '新增科室' },
        hidden: true,
        component: () => import('@/views/institu/OfficeAdd'),
      },
      {
        path: '/institu/officeEdit',
        name: '编辑科室',
        meta: { title: '编辑科室' },
        hidden: true,
        component: () => import('@/views/institu/OfficeAdd'),
      },
      {
        path: '/institu/officeDetail',
        name: '科室详情',
        meta: { title: '科室详情' },
        hidden: true,
        component: () => import('@/views/institu/OfficeDetail'),
      },

      {
        path: '/institu/doctorAdd',
        name: '新增医生',
        meta: { title: '新增医生' },
        hidden: true,
        component: () => import('@/views/institu/DoctorAdd'),
      },
      {
        path: '/institu/doctorEdit',
        name: '编辑医生',
        meta: { title: '编辑医生' },
        hidden: true,
        component: () => import('@/views/institu/DoctorAdd'),
      },
      {
        path: '/institu/doctorDetail',
        name: '医生详情',
        meta: { title: '医生详情' },
        hidden: true,
        component: () => import('@/views/institu/DoctorDetail'),
      },

      // ------------------------------------设备管理------------------------------------
      {
        path: '/equip/specimenAdd',
        name: '新增标本箱',
        meta: { title: '新增标本箱' },
        hidden: true,
        component: () => import('@/views/equip/SpecimenAdd'),
      },
      {
        path: '/equip/specimenEdit',
        name: '编辑标本箱',
        meta: { title: '编辑标本箱' },
        hidden: true,
        component: () => import('@/views/equip/SpecimenAdd'),
      },
      {
        path: '/equip/specimenDetail',
        name: '标本箱详情',
        meta: { title: '标本箱详情' },
        hidden: true,
        component: () => import('@/views/equip/SpecimenDetail'),
      },

      {
        path: '/equip/temperatureAdd',
        name: '新增设备',
        meta: { title: '新增设备' },
        hidden: true,
        component: () => import('@/views/equip/TemperatureAdd'),
      },
      {
        path: '/equip/temperatureEdit',
        name: '编辑设备',
        meta: { title: '编辑设备' },
        hidden: true,
        component: () => import('@/views/equip/TemperatureAdd'),
      },

      {
        path: '/equip/beeperAdd',
        name: '新增呼叫器',
        meta: { title: '新增呼叫器' },
        hidden: true,
        component: () => import('@/views/equip/BeeperAdd'),
      },
      {
        path: '/equip/beeperEdit',
        name: '编辑呼叫器',
        meta: { title: '编辑呼叫器' },
        hidden: true,
        component: () => import('@/views/equip/BeeperAdd'),
      },
      {
        path: '/equip/beeperDetail',
        name: '呼叫器详情',
        meta: { title: '呼叫器详情' },
        hidden: true,
        component: () => import('@/views/equip/BeeperDetail'),
      },
      {
        path: '/equip/householdManagement',
        name: '住户管理',
        meta: { title: '住户管理' },
        hidden: true,
        component: () => import('@/views/equip/HouseholdManagement'),
      },
      {
        path: '/equip/householdAdd',
        name: '新增住户',
        meta: { title: '新增住户' },
        hidden: true,
        component: () => import('@/views/equip/HouseholdAdd'),
      },
      {
        path: '/equip/householdEdit',
        name: '编辑住户',
        meta: { title: '编辑住户' },
        hidden: true,
        component: () => import('@/views/equip/HouseholdAdd'),
      },
      {
        path: '/equip/householdDetail',
        name: '住户详情',
        meta: { title: '住户详情' },
        hidden: true,
        component: () => import('@/views/equip/HouseholdDetail'),
      },
      {
        path: '/equip/businessManagement',
        name: '商户管理',
        meta: { title: '商户管理' },
        hidden: true,
        component: () => import('@/views/equip/BusinessManagement'),
      },
      {
        path: '/equip/businessAdd',
        name: '新增商户',
        meta: { title: '新增商户' },
        hidden: true,
        component: () => import('@/views/equip/BusinessAdd'),
      },
      {
        path: '/equip/businessEdit',
        name: '编辑商户',
        meta: { title: '编辑商户' },
        hidden: true,
        component: () => import('@/views/equip/BusinessAdd'),
      },
      {
        path: '/equip/businessDetail',
        name: '商户详情',
        meta: { title: '商户详情' },
        hidden: true,
        component: () => import('@/views/equip/BusinessDetail'),
      },

      {
        path: '/equip/boxAdd',
        name: '新增标本箱',
        meta: { title: '新增标本箱' },
        hidden: true,
        component: () => import('@/views/equip/BoxAdd'),
      },
      {
        path: '/equip/boxEdit',
        name: '编辑标本箱',
        meta: { title: '编辑标本箱' },
        hidden: true,
        component: () => import('@/views/equip/BoxAdd'),
      },
      {
        path: '/equip/boxDetail',
        name: '标本箱详情',
        meta: { title: '标本箱详情' },
        hidden: true,
        component: () => import('@/views/equip/BoxDetail'),
      },

      {
        path: '/equip/boxFingerprintManagement',
        name: '标本箱指纹列表',
        meta: { title: '标本箱指纹列表' },
        hidden: true,
        component: () => import('@/views/equip/BoxFingerprintManagement'),
      },

      {
        path: '/equip/boxCardAdd',
        name: '新增物联网卡',
        meta: { title: '新增物联网卡' },
        hidden: true,
        component: () => import('@/views/equip/BoxCardAdd'),
      },
      {
        path: '/equip/boxCardEdit',
        name: '编辑物联网卡',
        meta: { title: '编辑物联网卡' },
        hidden: true,
        component: () => import('@/views/equip/BoxCardAdd'),
      },

      // ------------------------------------财务管理------------------------------------
      {
        path: '/finance/invoiceAdd',
        name: '新增税务发票',
        meta: { title: '新增税务发票' },
        hidden: true,
        component: () => import('@/views/finance/InvoiceAdd'),
      },
      {
        path: '/finance/invoiceEdit',
        name: '编辑发票信息',
        meta: { title: '编辑发票信息' },
        hidden: true,
        component: () => import('@/views/finance/InvoiceAdd'),
      },
      {
        path: '/finance/invoiceDetail',
        name: '发票详情',
        meta: { title: '发票详情' },
        hidden: true,
        component: () => import('@/views/finance/InvoiceDetail'),
      },
      {
        path: '/finance/merchantNoAdd',
        name: '新增商户号',
        meta: { title: '新增商户号' },
        hidden: true,
        component: () => import('@/views/finance/MerchantNoAdd'),
      },
      {
        path: '/finance/merchantNoEdit',
        name: '编辑商户号',
        meta: { title: '编辑商户号' },
        hidden: true,
        component: () => import('@/views/finance/MerchantNoAdd'),
      },
      {
        path: '/finance/merchantNoDetail',
        name: '商户号详情',
        meta: { title: '商户号详情' },
        hidden: true,
        component: () => import('@/views/finance/MerchantNoDetail'),
      },

      // ------------------------------------项目管理------------------------------------
      {
        path: '/item/priceModelAdd',
        name: '项目组价格模板新增',
        meta: { title: '项目组价格模板新增' },
        hidden: true,
        component: () => import('@/views/project/PriceModelAdd'),
      },
      {
        path: '/item/priceModelDetail',
        name: '价格模板详情',
        meta: { title: '价格模板详情' },
        hidden: true,
        component: () => import('@/views/project/PriceModelDetail'),
      },
      {
        path: '/item/priceModelsublList',
        name: '价格模板列表',
        meta: { title: '价格模板列表' },
        hidden: true,
        component: () => import('@/views/project/PriceModelSublList'),
      },
      {
        path: '/item/priceModelSubAdd',
        name: '价格模板新增',
        meta: { title: '价格模板新增' },
        hidden: true,
        component: () => import('@/views/project/PriceModelSubAdd'),
      },
      {
        path: '/item/institutionItemAdd',
        name: '新增医检项目组',
        meta: { title: '新增医检项目组' },
        hidden: true,
        component: () => import('@/views/project/InstitutionItemAdd'),
      },
      {
        path: '/item/institutionItemEdit',
        name: '编辑医检项目组',
        meta: { title: '编辑医检项目组' },
        hidden: true,
        component: () => import('@/views/project/InstitutionItemAdd'),
      },
      {
        path: '/item/institutionItemDetail',
        name: '医检项目组详情',
        meta: { title: '医检项目组详情' },
        hidden: true,
        component: () => import('@/views/project/InstitutionItemDetail'),
      },
      {
        path: '/item/medicalSpecimenAdd',
        name: '新增医检标本',
        meta: { title: '新增医检标本' },
        hidden: true,
        component: () => import('@/views/project/MedicalSpecimenAdd'),
      },
      {
        path: '/item/medicalSpecimenEdit',
        name: '编辑医检标本',
        meta: { title: '编辑医检标本' },
        hidden: true,
        component: () => import('@/views/project/MedicalSpecimenAdd'),
      },
      {
        path: '/item/medicalSpecimenDetail',
        name: '医检标本详情',
        meta: { title: '医检标本详情' },
        hidden: true,
        component: () => import('@/views/project/MedicalSpecimenDetail'),
      },

      {
        path: '/item/institutionSubItemManagement',
        name: '医检子项目列表',
        meta: { title: '医检子项目列表' },
        hidden: true,
        component: () => import('@/views/project/InstitutionSubItemManagement'),
      },
      {
        path: '/item/institutionSubItemAdd',
        name: '新增医检子项目',
        meta: { title: '新增医检子项目' },
        hidden: true,
        component: () => import('@/views/project/InstitutionSubItemAdd'),
      },
      {
        path: '/item/institutionSubItemEdit',
        name: '编辑医检子项目',
        meta: { title: '编辑医检子项目' },
        hidden: true,
        component: () => import('@/views/project/InstitutionSubItemAdd'),
      },
      {
        path: '/item/institutionSubItemDetail',
        name: '医检子项目详情',
        meta: { title: '医检子项目详情' },
        hidden: true,
        component: () => import('@/views/project/InstitutionSubItemDetail'),
      },

      {
        path: '/item/hospitalItemAdd',
        name: '新增医院项目组',
        meta: { title: '新增医院项目组' },
        hidden: true,
        component: () => import('@/views/project/HospitalItemAdd'),
      },
      {
        path: '/item/hospitalItemEdit',
        name: '编辑医院项目组',
        meta: { title: '编辑医院项目组' },
        hidden: true,
        component: () => import('@/views/project/HospitalItemAdd'),
      },
      {
        path: '/item/hospitalItemDetail',
        name: '医院项目组详情',
        meta: { title: '医院项目组详情' },
        hidden: true,
        component: () => import('@/views/project/HospitalItemDetail'),
      },

      {
        path: '/item/hospitalSubItemManagement',
        name: '医院子项目列表',
        meta: { title: '医院子项目列表' },
        hidden: true,
        component: () => import('@/views/project/HospitalSubItemManagement'),
      },
      {
        path: '/item/hospitalSubItemAdd',
        name: '新增医院子项目',
        meta: { title: '新增医院子项目' },
        hidden: true,
        component: () => import('@/views/project/HospitalSubItemAdd'),
      },
      {
        path: '/item/hospitalSubItemEdit',
        name: '编辑医院子项目',
        meta: { title: '编辑医院子项目' },
        hidden: true,
        component: () => import('@/views/project/HospitalSubItemAdd'),
      },
      {
        path: '/item/hospitalSubItemDetail',
        name: '医院子项目详情',
        meta: { title: '医院子项目详情' },
        hidden: true,
        component: () => import('@/views/project/HospitalSubItemDetail'),
      },

      {
        path: '/item/reportItemAdd',
        name: '新增康来项目组',
        meta: { title: '新增康来项目组' },
        hidden: true,
        component: () => import('@/views/project/ReportItemAdd'),
      },
      {
        path: '/item/reportItemEdit',
        name: '编辑康来项目组',
        meta: { title: '编辑康来项目组' },
        hidden: true,
        component: () => import('@/views/project/ReportItemAdd'),
      },
      {
        path: '/item/reportItemDetail',
        name: '康来项目组详情',
        meta: { title: '康来项目组详情' },
        hidden: true,
        component: () => import('@/views/project/ReportItemDetail'),
      },

      {
        path: '/item/reportSubItemManagement',
        name: '康来子项目列表',
        meta: { title: '康来子项目列表' },
        hidden: true,
        component: () => import('@/views/project/ReportSubItemManagement'),
      },
      {
        path: '/item/reportSubItemAdd',
        name: '新增康来子项目',
        meta: { title: '新增康来子项目' },
        hidden: true,
        component: () => import('@/views/project/ReportSubItemAdd'),
      },
      {
        path: '/item/reportSubItemEdit',
        name: '编辑康来子项目',
        meta: { title: '编辑康来子项目' },
        hidden: true,
        component: () => import('@/views/project/ReportSubItemAdd'),
      },
      {
        path: '/item/reportSubItemDetail',
        name: '康来子项目详情',
        meta: { title: '康来子项目详情' },
        hidden: true,
        component: () => import('@/views/project/ReportSubItemDetail'),
      },

      // ------------------------------------文档管理------------------------------------

      {
        path: '/document/documentInfoAdd',
        name: '新增文档',
        meta: { title: '新增文档' },
        hidden: true,
        component: () => import('@/views/document/DocumentInfoAdd'),
      },
      {
        path: '/document/documentInfoEdit',
        name: '编辑文档',
        meta: { title: '编辑文档' },
        hidden: true,
        component: () => import('@/views/document/DocumentInfoAdd'),
      },
      {
        path: '/document/documentInfoDetail',
        name: '文档详情',
        meta: { title: '文档详情' },
        hidden: true,
        component: () => import('@/views/document/DocumentInfoDetail'),
      },

      {
        path: '/document/documentClassifyAdd',
        name: '新增文档分类',
        meta: { title: '新增文档分类' },
        hidden: true,
        component: () => import('@/views/document/DocumentClassifyAdd'),
      },
      {
        path: '/document/documentClassifyEdit',
        name: '编辑文档分类',
        meta: { title: '编辑文档分类' },
        hidden: true,
        component: () => import('@/views/document/DocumentClassifyEdit'),
      },

      // ------------------------------------开放管理------------------------------------
      {
        path: '/organ/organAuthAdd',
        name: '新增商户',
        meta: { title: '新增商户' },
        hidden: true,
        component: () => import('@/views/organ/OrganAuthAdd'),
      },
      {
        path: '/organ/organAuthEdit',
        name: '编辑商户',
        meta: { title: '编辑商户' },
        hidden: true,
        component: () => import('@/views/organ/OrganAuthAdd'),
      },

      {
        path: '/organ/thirdAuthAdd',
        name: '新增第三方',
        meta: { title: '新增第三方' },
        hidden: true,
        component: () => import('@/views/organ/ThirdAuthAdd'),
      },
      {
        path: '/organ/thirdAuthEdit',
        name: '编辑第三方',
        meta: { title: '编辑第三方' },
        hidden: true,
        component: () => import('@/views/organ/ThirdAuthAdd'),
      },

      {
        path: '/organ/thirdAccountAdd',
        name: '新增第三方账号',
        meta: { title: '新增第三方账号' },
        hidden: true,
        component: () => import('@/views/organ/ThirdAccountAdd'),
      },
      {
        path: '/organ/thirdAccountEdit',
        name: '编辑第三方账号',
        meta: { title: '编辑第三方账号' },
        hidden: true,
        component: () => import('@/views/organ/ThirdAccountAdd'),
      },
      {
        path: '/organ/thirdAccountDetail',
        name: '第三方账号详情',
        meta: { title: '第三方账号详情' },
        hidden: true,
        component: () => import('@/views/organ/ThirdAccountDetail'),
      },

      // ------------------------------------个人中心------------------------------------
      {
        path: '/user/userAdviceAdd',
        name: '新增投诉建议',
        meta: { title: '新增投诉建议' },
        hidden: true,
        component: () => import('@/views/user/UserAdviceAdd'),
      },
      {
        path: '/user/userHelpAdd',
        name: '新增帮助',
        meta: { title: '新增帮助' },
        hidden: true,
        component: () => import('@/views/user/UserHelpAdd'),
      },
      {
        path: '/user/userStudyAdd',
        name: '新增学习',
        meta: { title: '新增学习' },
        hidden: true,
        component: () => import('@/views/user/UserStudyAdd'),
      },
      {
        path: '/user/companyAdviceAdd',
        name: '新增反馈',
        meta: { title: '新增反馈' },
        hidden: true,
        component: () => import('@/views/user/CompanyAdviceAdd'),
      },

      // ------------------------------------消息管理------------------------------------
      /*{path: '/message/scan', name: '我的扫码', meta: {title: '我的扫码'}, hidden: true,
        component: () => import('@/views/message/Scan')},
      {path: '/message/scanOne', name: '我的扫码1', meta: {title: '我的扫码1'}, hidden: true,
        component: () => import('@/views/message/ScanTwo')},*/

      // ------------------------------------图文问题管理------------------------------------
      {
        path: '/question/questionDetail',
        name: '图文反馈详情',
        meta: { title: '图文反馈详情' },
        hidden: true,
        component: () => import('@/views/question/QuestionDetail'),
      },
      // ------------------------------------系统管理------------------------------------
      {
        path: '/sys/userAdd',
        name: '新增人员',
        meta: { title: '新增人员' },
        hidden: true,
        component: () => import('@/views/system/UserAdd'),
      },
      {
        path: '/sys/userEdit',
        name: '编辑人员',
        meta: { title: '编辑人员' },
        hidden: true,
        component: () => import('@/views/system/UserAdd'),
      },
      {
        path: '/sys/userRole',
        name: '角色设置',
        meta: { title: '角色设置' },
        hidden: true,
        component: () => import('@/views/system/UserRole'),
      },
      {
        path: '/sys/userDetail',
        name: '人员详情',
        meta: { title: '人员详情' },
        hidden: true,
        component: () => import('@/views/system/UserDetail'),
      },

      {
        path: '/sys/employAdd',
        name: '新增员工',
        meta: { title: '新增员工' },
        hidden: true,
        component: () => import('@/views/system/EmployAdd'),
      },
      {
        path: '/sys/employEdit',
        name: '编辑员工',
        meta: { title: '编辑员工' },
        hidden: true,
        component: () => import('@/views/system/EmployAdd'),
      },
      {
        path: '/sys/employDetail',
        name: '员工详情',
        meta: { title: '员工详情' },
        hidden: true,
        component: () => import('@/views/system/EmployDetail'),
      },

      {
        path: '/sys/roleAdd',
        name: '新增角色',
        meta: { title: '新增角色' },
        hidden: true,
        component: () => import('@/views/system/RoleAdd'),
      },
      {
        path: '/sys/roleEdit',
        name: '编辑角色',
        meta: { title: '编辑角色' },
        hidden: true,
        component: () => import('@/views/system/RoleAdd'),
      },
      {
        path: '/sys/roleMenus',
        name: '权限设置',
        meta: { title: '权限设置' },
        hidden: true,
        component: () => import('@/views/system/RoleMenus'),
      },
      {
        path: '/sys/roleDetail',
        name: '角色详情',
        meta: { title: '角色详情' },
        hidden: true,
        component: () => import('@/views/system/RoleDetail'),
      },

      {
        path: '/sys/menuAdd',
        name: '新增菜单',
        meta: { title: '新增菜单' },
        hidden: true,
        component: () => import('@/views/system/MenuAdd'),
      },
      {
        path: '/sys/menuEdit',
        name: '编辑菜单',
        meta: { title: '编辑菜单' },
        hidden: true,
        component: () => import('@/views/system/MenuEdit'),
      },

      {
        path: '/sys/departAdd',
        name: '新增部门',
        meta: { title: '新增部门' },
        hidden: true,
        component: () => import('@/views/system/DepartAdd'),
      },
      {
        path: '/sys/departEdit',
        name: '编辑部门',
        meta: { title: '编辑部门' },
        hidden: true,
        component: () => import('@/views/system/DepartAdd'),
      },

      /*// 字典类型管理
      {path: '/sys/dictTypeAdd', name: '新增字典类型', meta: {title: '新增字典类型'}, hidden: true,
        component: () => import('@/views/system/dict/DictTypeAdd')},
      {path: '/sys/dictTypeEdit', name: '编辑字典类型', meta: {title: '编辑字典类型'}, hidden: true,
        component: () => import('@/views/system/dict/DictTypeEdit')},

      // 字典管理
      {path: '/sys/departAdd', name: '新增字典', meta: {title: '新增字典'}, hidden: true,
        component: () => import('@/views/system/dict/DictAdd')},
      {path: '/sys/departEdit', name: '编辑字典', meta: {title: '编辑字典'}, hidden: true,
        component: () => import('@/views/system/dict/DictEdit')},*/
    ],
  },
];

export default new Router({
  mode: 'history', // 去掉url中的#
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap,
});

// 动态路由
export const asyncRouterMap = [
  /** When your routing table is too long, you can split it into small modules**/
  report,
  hsReport,
  task,
  appoint,
  referral,
  consume,
  disinfect,
  collect,
  sample,
  institution,
  equip,
  finance,
  item,
  document,
  organ,
  user,
  message,
  system,
  question,
  { path: '*', redirect: '/404', hidden: true },
];
